class Colors:
    HEADER = '\033[95m'
    OKBLUE = '\033[94m'
    OKGREEN = '\033[92m'
    WARNING = '\033[93m'
    FAIL = '\033[91m'
    ENDC = '\033[0m'
    BOLD = '\033[1m'
    UNDERLINE = '\033[4m'


'''
颜色print输出
'''


class ColorPrint(object):
    def __init__(self):
        pass

    @staticmethod
    def green_print(line):
        print(Colors.OKGREEN + line + Colors.ENDC)

    @staticmethod
    def blue_print(line):
        print(Colors.OKBLUE + line + Colors.ENDC)

    @staticmethod
    def yellow_print(line):
        print(Colors.WARNING + line + Colors.ENDC)

    @staticmethod
    def red_print(line):
        print(Colors.FAIL + line + Colors.ENDC)

    @staticmethod
    def bold_print(line):
        print(Colors.BOLD + line + Colors.ENDC)

    @staticmethod
    def underline_print(line):
        print(Colors.UNDERLINE + line + Colors.ENDC)


def green_print(line):
    print(Colors.OKGREEN + line + Colors.ENDC)


def blue_print(line):
    print(Colors.OKBLUE + line + Colors.ENDC)


def yellow_print(line):
    print(Colors.WARNING + line + Colors.ENDC)


def red_print(line):
    print(Colors.FAIL + line + Colors.ENDC)


def bold_print(line):
    print(Colors.BOLD + line + Colors.ENDC)


def underline_print(line):
    print(Colors.UNDERLINE + line + Colors.ENDC)


if __name__ == "__main__":
    green_print("hello world")
    blue_print("hello world")
    yellow_print("hello world")
    red_print("hello world")
    bold_print("hello world")
    underline_print("hello world")
